package Homework.Top7;

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Test extends Thread {
    @Override
    public void run() {
        try {
            sleep(4000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.exit(1);
    }

    public static void main(String[] args) {
        Scanner input=new Scanner(System.in);
        Test test=new Test();
        test.start();
        System.out.println("请输入姓名：");
        String name=input.next();
        System.out.println("请输入密码：");
        String pwd=input.next();
        if ("admin".equals(name)&&"Admin".equals(pwd)){
            System.out.println(name+"已登录");
        }else{
            System.out.println("找不到用户");
        }

    }
}
